package com.zfzs.post.model.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @description: 找回密码
 * @author: ck
 * @create: 2019-08-22 17:48
 **/
@Data
public class ForgetPwdDTO {
    //手机号码
    @NotBlank(message = "请填写手机号码")
    @Pattern(regexp = "^1(2|3|4|5|6|7|8|9)\\d{9}$",message = "手机号码格式不正确")
    private String phone;
    //验证码
    @NotBlank(message = "请填写验证码")
    private String code;
    //密码
    @NotBlank(message = "请输入密码")
    private String pwd;
    //确认密码
    @NotBlank(message = "请输入确认密码")
    private String cfmPwd;
    //验证码的uuid
    @NotBlank(message = "uuid必填")
    private String uuid;
    //所属渠道
    @NotNull(message = "渠道id必填")
    private Long channelId;
}
